#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：python_learning 
@File ：debuger.py
@IDE  ：PyCharm 
@Author ：李涵彬
@Date ：2024/6/4 下午3:28 
"""


def debug(func):
	def wrapper(*args, **kwargs):
		# print the fucntion name and arguments
		print(f"Calling {func.__name__} with args: {args} kwargs: {kwargs}")
		# call the function
		result = func(*args, **kwargs)
		# print the results
		print(f"{func.__name__} returned: {result}")
		return result

	return wrapper
